import Vue from 'vue'
import Router from 'vue-router'
import Duty from '@/page/Duty'
import DutyDetail from '@/page/DutyDetail'
import BackStage from '@/page/BackStage'
import logo from '@/page/logo'
import pdfshow from '@/page/pdfshow'

// import pdf from './pdf'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Duty',
            component: Duty,
            meta:{
                title:'值班列表'
            }
        },
        {
            path: '/DutyDetail',
            name: 'DutyDetail',
            component: DutyDetail,
            meta:{
                title:'预览文件'
            }
        },
        {
            path: '/BackStage',
            name: 'BackStage',
            component: BackStage,
            meta:{
                title:'后台管理'
            }
        },
        {
            path: '/logo',
            name: 'logo',
            component: logo,
            meta:{
                title:'用户登陆'
            }
        },
        {
            path: '/pdfshow',
            name: 'pdfshow',
            component: pdfshow
        }
    ]
})